import type { R } from "@/api";
import { http } from "@/utils/http";

const path = "/api/v1/bind";

enum Index {
  permissionBind = "/permission",
  roleBind = "/role"
}

export const permissionBind = (data?: object) =>
  http.post<R, {}>(`${path}${Index.permissionBind}`, { data: data });

export const roleBind = (data?: object) =>
  http.post<R, {}>(`${path}${Index.roleBind}`, { data: data });
